package com.coco.bargain.mapper;

import com.coco.bargain.pojo.TbBargainGoods;
import com.coco.bargain.vo.GoodsSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/7/21 20:11
 */
@Mapper
public interface BargainGoodsMapper {
    public void deleteById(Long id);

    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    List<TbBargainGoods> search(GoodsSearchVo searchVo);

    TbBargainGoods findById(Long id);

    void updateById(TbBargainGoods bargainGoods);

    void addToTbBargainGoods(TbBargainGoods tbBargainGoods);

    TbBargainGoods findOne(Long id);
}
